package com.cadre.basic.thread.test;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class MyCallable1 implements Callable<String> {

    private String photo;


    public MyCallable1(String photo) {
        this.photo = photo;
    }

    @Override
    public String call() throws Exception {


        try {
            System.out.println(Thread.currentThread().getName()+"ST线程");
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return "ST:U09DDD"+photo;
    }
}
